#!/bin/bash

rootdir=$PWD
CONF_PATH=$rootdir/conf/
LIB_PATH=$rootdir/libs/
MAIN_CLASS=net.mimieyes.klines.Application
JAR_PATH=""
for jar in `find $LIB_PATH -name "*.jar"`
do
    JAR_PATH="$JAR_PATH:""$jar"
done

CLASSPATH=$CONF_PATH"$JAR_PATH"

nohup /root/java11/jdk-11.0.2/bin/java -Dfile.encoding=UTF-8 -Xms512m -Xmx512m -classpath $CLASSPATH ${MAIN_CLASS} >>starting.log 2>&1 &
